/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class UVSensor {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010030023';
    }

    get categoryName() {
        return '\u7d2b\u5916\u7ebf\u4f20\u611f\u5668';
    }

    getIntensity(params) {
        return command({
            method: 'getIntensity',
            methodId: 'pUPQ8V2x',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'ppAXISuG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3nLQ3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default UVSensor;
